package util;

import java.util.ArrayList;
import java.util.List;

public class CalculatedUtil {

	public static void main(String[] args) {
		CalculatedUtil instance = new CalculatedUtil();
		List<Object[]> objList = instance.objectArray();
		instance.result(objList);
	}
	
	private void a() {
		int x = 22;
		int y = 21;
		int result = x%y;
		System.out.println(result);
	}
	
	private List<Object[]> objectArray() {
		List<Object[]> list = new ArrayList<Object[]>();
		Object[] o1 = {1,"aaaa",3,"bbbbb"};
		Object[] o2 = {2,"cccc",4,"ddddd"};
		list.add(o1);
		list.add(o2);
		return list;
	}
	
	private void result(List<Object[]> objList) {
		Object[] res = null;
		for(int i = 0; i < objList.size(); i++) {
			res = (Object[]) objList.get(i);
			for(int j = 0; j < res.length; j++) {
				System.out.println(res[j]);
			}
		}
	}
}
